﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SF.Model
{
    /// <summary>
    /// 用户分组表
    /// </summary>
    [Serializable]
    public partial class bs_user_groups
    {
        public bs_user_groups()
        { }
        #region Model
        private long _id;

        private string _busnieseNum;  //商户号
        private string _appNum;  //公众号

        private string _groupName;
        private int? _grade;
        private int? _shoppingExp;
        private int? _level1UserCount;
        private int? _level2UserCount;
        private int? _level3UserCount;
        private decimal? _totalMoney;
        private decimal? _levelAward;
        private decimal? _shoppingDiscount;
        private int? _is_defalut;
        private int? _is_upgrade;
        private int? _is_lock;

        /// <summary>
        /// 自增Id
        /// </summary>
        public long id
        {
            get { return _id; }
            set { _id = value; }
        }

        /// <summary>
        /// 商户号
        /// </summary>
        public string busnieseNum
        {
            get { return _busnieseNum; }
            set { _busnieseNum = value; }
        }

        /// <summary>
        /// 公众号编码
        /// </summary>
        public string appNum
        {
            get { return _appNum; }
            set { _appNum = value; }
        }

        /// <summary>
        /// 分组名称
        /// </summary>
        public string groupName
        {
            get { return _groupName; }
            set { _groupName = value; }
        }

        /// <summary>
        /// 等级
        /// </summary>
        public int? grade
        {
            get { return _grade; }
            set { _grade = value; }
        }

        /// <summary>
        /// 购物积分
        /// </summary>
        public int? shoppingExp
        {
            get { return _shoppingExp; }
            set { _shoppingExp = value; }
        }

        /// <summary>
        /// 一级分销数
        /// </summary>
        public int? level1UserCount
        {
            get { return _level1UserCount; }
            set { _level1UserCount = value; }
        }

        /// <summary>
        /// 二级分销数
        /// </summary>
        public int? level2UserCount
        {
            get { return _level2UserCount; }
            set { _level2UserCount = value; }
        }

        /// <summary>
        /// 三级分销数
        /// </summary>
        public int? level3UserCount
        {
            get { return _level3UserCount; }
            set { _level3UserCount = value; }
        }

        /// <summary>
        /// 累计佣金
        /// </summary>
        public decimal? totalMoney
        {
            get { return _totalMoney; }
            set { _totalMoney = value; }
        }

        /// <summary>
        /// 等级奖励
        /// </summary>
        public decimal? levelAward
        {
            get { return _levelAward; }
            set { _levelAward = value; }
        }

        /// <summary>
        /// 购物折扣
        /// </summary>
        public decimal? shoppingDiscount
        {
            get { return _shoppingDiscount; }
            set { _shoppingDiscount = value; }
        }

        /// <summary>
        /// 是否默认注册组
        /// </summary>
        public int? is_default
        {
            get { return _is_defalut; }
            set { _is_defalut = value; }
        }

        /// <summary>
        /// 是否允许升级
        /// </summary>
        public int? is_upgrade
        {
            get { return _is_upgrade; }
            set { _is_upgrade = value; }
        }

        /// <summary>
        /// 是否启用
        /// </summary>
        public int? is_lock
        {
            get { return _is_lock; }
            set { _is_lock = value; }
        }
        #endregion Model
    }
}
